Skip to content

Issue #98: Fix packaging configuration to include all subdirectories#99

Merged
Subterrane merged 2 commits intoonelogin:mainfrom
JazzSecurity:fix-packaging
Sep 2, 2025
Merged

Issue #98: Fix packaging configuration to include all subdirectories#99
Subterrane merged 2 commits intoonelogin:mainfrom
JazzSecurity:fix-packaging

Conversation

@amnon-jazz
Copy link
Copy Markdown
Contributor

@amnon-jazz amnon-jazz commented Aug 20, 2025

  • Change packages = ["onelogin"] to packages = {find = {}}
  • This ensures onelogin.api and onelogin.models are included in the package
  • Fixes ImportError: No module named 'onelogin.api'

This PR resolves issue #98. I don't have a Jira ticket number, I'm not sure where to get that.

This pull request updates the packaging configuration in pyproject.toml to improve how packages are discovered and included. The change ensures that only relevant source code is packaged, excluding test and documentation directories.

Packaging improvements:

  • Updated the packages setting to use find and explicitly exclude tests* and docs* directories from the package distribution, ensuring a cleaner package and reducing unnecessary files in releases.

- Change packages = ["onelogin"] to packages = {find = {}}
- This ensures onelogin.api and onelogin.models are included in the package
- Fixes ImportError: No module named 'onelogin.api'
@Subterrane Subterrane requested a review from Copilot August 20, 2025 12:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a packaging configuration issue that was causing import errors for the onelogin library's subdirectories. The change updates the setuptools configuration to automatically discover and include all packages rather than explicitly listing only the top-level package.

  • Updates setuptools package discovery from explicit listing to automatic discovery
  • Ensures all subdirectories (onelogin.api, onelogin.models) are included in the package build
  • Resolves ImportError issues when trying to import submodules

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread pyproject.toml Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Subterrane Subterrane merged commit 05b02fa into onelogin:main Sep 2, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants